import WeChaty from "../../utils/WeChaty";

export class WeChatyService {
  public static async getLoginUrl(): Promise<any> {
    const wc = WeChaty.create();

    const codeUrl = await wc.run();
    return codeUrl;
  }

  public static async getLoginStatus(): Promise<any> {
    return WeChaty.create().isLogin();
  }
}
